package com.wondertek.poms.search.service.impl;

import com.wondertek.poms.dao.po.PublishLog;
import com.wondertek.poms.dao.repo.es.IPublishLogESDao;
import com.wondertek.poms.search.service.IPublishLogESService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author chenjijiang
 * @description
 */
@Service
public class PublishLogESServiceImpl implements IPublishLogESService {
	@Autowired
	private IPublishLogESDao publishLogESDao;

	@Override
	public Long getCount(String prdConId, String conId, Date pubStartTime, Date pubEndTime, String pubStatus, String prdInfoId, String createUserName) {
		return publishLogESDao.getCount(prdConId, conId, pubStartTime, pubEndTime, pubStatus, prdInfoId, createUserName);
	}

	@Override
	public List<PublishLog> getPubsPage(int start, int limit, String prdConId, String conId, Date pubStartTime, Date pubEndTime, String pubStatus, String prdInfoId, String createUserName) {
		return publishLogESDao.getPubsPage(start, limit, prdConId, conId, pubStartTime, pubEndTime, pubStatus, prdInfoId, createUserName);
	}
}
